CC=g++
CFLAGS=-c -Wall
LDFLAGS=
BUILD_DIR=src/main/native
TARGET_DIR=target

# define the source code 
SOURCES=$(BUILD_DIR)/main.cpp \
$(BUILD_DIR)/echo.cpp 


OBJECTS=$(SOURCES:.cpp=.o)
EXECUTABLE=$(TARGET_DIR)/hello

all: $(SOURCES) $(EXECUTABLE)
	
$(EXECUTABLE): $(OBJECTS) 
	$(CC) $(LDFLAGS) $(OBJECTS) -o $@

.cpp.o:
	$(CC) $(CFLAGS) $< -o $@
